
<%@ page import="net.comic.entities.CollectionComic" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="collectionComic.create" default="Create CollectionComic" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="collectionComic.list" default="CollectionComic List" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="collectionComic.create" default="Create CollectionComic" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${collectionComicInstance}">
            <div class="errors">
                <g:renderErrors bean="${collectionComicInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="collectionComic.name" default="Name" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" maxlength="50" value="${fieldValue(bean: collectionComicInstance, field: 'name')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="collectionComic.description" default="Description" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" rows="5" cols="40" value="${fieldValue(bean: collectionComicInstance, field: 'description')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated"><g:message code="collectionComic.dateCreated" default="Date Created" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" value="${collectionComicInstance?.dateCreated}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="disabled"><g:message code="collectionComic.disabled" default="Disabled" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'disabled', 'errors')}">
                                    <g:checkBox name="disabled" value="${collectionComicInstance?.disabled}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="imagePath"><g:message code="collectionComic.imagePath" default="Image Path" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'imagePath', 'errors')}">
                                    <g:textField name="imagePath" value="${fieldValue(bean: collectionComicInstance, field: 'imagePath')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated"><g:message code="collectionComic.lastUpdated" default="Last Updated" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'lastUpdated', 'errors')}">
                                    <g:datePicker name="lastUpdated" value="${collectionComicInstance?.lastUpdated}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="rate"><g:message code="collectionComic.rate" default="Rate" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: collectionComicInstance, field: 'rate', 'errors')}">
                                    <g:textField name="rate" value="${fieldValue(bean: collectionComicInstance, field: 'rate')}" />

                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
